package xyz.labmem.lipx.core.context

import cn.hutool.core.codec.Base64

class Secret(
    val key: String
) {
    companion object {
        private var secret: Secret? = null
        fun getKey(): ByteArray? = secret?.let { return Base64.decode(it.key) }
        fun getKeyStr(): String? = secret?.let { return it.key }
    }

    init {
        secret = this
    }
}